package com.pzhu.user.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.pzhu.base.common.utils.mybatisflex.BaseEntity;
import com.pzhu.base.common.utils.mybatisflex.LogicDeleteEntity;
import com.pzhu.user.domain.enums.SwitchStatusEnum;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * 角色表
 *
 * @TableName role
 */
@EqualsAndHashCode(callSuper = true)
@Table(value = "role")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Role extends LogicDeleteEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 角色码
     */
    private String code;
    /**
     * 角色描述
     */
    private String roleDesc;

    /** 状态 */
    private SwitchStatusEnum status;
}